How can I block all traffic except web traffic? [closed]

Posted by toddoon on Stack Overflow See other posts from Stack Overflow or by toddoon
Published on 2009-03-18T15:23:02Z Indexed on 2010/03/14 0:55 UTC
Read the original article Hit count: 187

Filed under:
|

I have wrote my rules like this:

iptables -P INPUT DROP
iptables -P OUTPUT DROP
iptables -P FORWARD DROP

iptables -A OUTPUT -i eth0 -p tcp --dport 80 -j ACCEPT

What do I do next?

© Stack Overflow or respective owner

Related posts about iptables

Related posts about web-traffic